<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('操作日志详细')" />
	<th:block th:include="include :: jsonview-css" />
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
	<form class="form-horizontal m-t" id="signupForm">
		<div class="form-group">
			<input type="hidden" id="pid" th:value="${purList.get(0).purId}"/>
			<label class="col-sm-2 control-label">采购编号：</label>
			<div class="form-control-static" th:text="${purList.get(0).purId}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">采购时间：</label>
			<div class="form-control-static" th:text="${#dates.format(purList.get(0).purTime,'yyyy年MM月dd日')}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">总金额：</label>
			<div class="form-control-static" th:text="${purList.get(0).total + '元'}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">操作人：</label>
			<div class="form-control-static" th:text="${purList.get(0).getPUsername()}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">审核状态：</label>
			<div class="form-control-static" th:text="${purList.get(0).rkState == 1?'未审核':'审核中'}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">审核意见：</label>
			<div class="form-control-static" th:text="${purList.get(0).opinion}"></div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">审核人：</label>
			<div class="form-control-static" th:text="${purList.get(0).getCUsername()}"></div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">审核时间：</label>
			<div class="form-control-static" th:text="${#dates.format(purList.get(0).checkTime,'yyyy年MM月dd日')}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">入库仓库：</label>
			<div class="form-control-static" th:text="${repoWare.get(0).wareName}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">出库时间：</label>
			<div class="form-control-static" th:text="${#dates.format(rks.get(0).ckTime,'yyyy年MM月dd日')}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">出库人：</label>
			<div class="form-control-static" th:text="${rks.get(0).sysCkUser}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">出库状态：</label>
			<div class="form-control-static" th:text="${rks.get(0).reStatus.equals('1')?'未发货':(rks.get(0).reStatus.equals('2')?'已发货':(rks.get(0).reStatus.equals('3')?'已回款':(rks.get(0).reStatus.equals('4')?'取消订单':'已退货')))}">
			</div>
		</div>
	</form>

		<div class="col-sm-12 select-table table-striped">
			<table id="bootstrap-table"></table>
		</div>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: jsonview-js" />
	<script th:inline="javascript">
		var prefix = ctx + "storage/ck";


		$(function() {
			var options = {
				url: prefix + "/detailsList/" + $("#pid").val(),
				modalName: "仓库",
				columns: [{
					checkbox: true
				},
					{
						title:'编号',
						formatter:function(value,row,index) {
							return $.table.serialNumber((index));
						}
					},
					{
						field: 'repoWare',
						title: '仓库名称'
					},
					{
						field: 'brandName',
						title: '商品品牌',
					},
					{
						field: 'typeName',
						title: '商品类型',
					},
					{
						field: 'productName',
						title: '商品名称',
					},
					{
						field: 'firmName',
						title: '厂商名称',
					},
					{
						field: 'kcNum',
						title: '商品数量',
					},
					{
						field: 'unit',
						title: '单位',
					}]
			};
			$.table.init(options);
		});


	</script>
</body>
</html>